﻿using System.Drawing;

namespace Models
{
    public class Role
    {
        private int id;
        private string name;                 // 名称
        private int originalLife; // 原始生命值
        private int currentLife; // 当前生命值 
        private int damage;  // 力量
        private int agile;      // 敏捷
        private int brains;     // 智力
        private int speed;      // 速度
        private Point currentLocation;  // 原始位置
        private Point originaLocation;  //  当前位置
        private Weapon wpn; // 武器
        private int type; // 角色类型
        private RoleUI roleUI;

        public Role()
        {
        }

        public Role(int id, string name, int originalLife, int currentLife, int damage, int agile, int brains, int speed, Point currentLocation, Point originaLocation, Weapon wpn)
        {
            this.id = id;
            this.name = name;
            this.originalLife = originalLife;
            this.currentLife = currentLife;
            this.damage = damage;
            this.agile = agile;
            this.brains = brains;
            this.speed = speed;
            this.currentLocation = currentLocation;
            this.originaLocation = originaLocation;
            this.wpn = wpn;
        }

        public int Id { get => id; set => id = value; }
        public string Name { get => name; set => name = value; }
        public int OriginalLife { get => originalLife; set => originalLife = value; }
        public int CurrentLife { get => currentLife; set => currentLife = value; }
        public int Damage { get => damage; set => damage = value; }
        public int Agile { get => agile; set => agile = value; }
        public int Brains { get => brains; set => brains = value; }
        public int Speed { get => speed; set => speed = value; }
        public Point CurrentLocation { get => currentLocation; set => currentLocation = value; }
        public Point OriginaLocation { get => originaLocation; set => originaLocation = value; }
        public Weapon Wpn { get => wpn; set => wpn = value; }
        public int Type { get => type; set => type = value; }
        public RoleUI RoleUI { get => roleUI; set => roleUI = value; }
    }
}
